package com.wanmait.wanmarecruit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
* Created by Mybatis Generator 2022/10/19
*/
@Data
@TableName(value = "position_history")
public class PositionHistory implements Serializable {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联user表
     */
    @TableField(value = "user_id")
    private Integer userId;
    @TableField(exist = false)
    private User user;
    /**
     * 关联position表
     */
    @TableField(value = "position_id")
    private Integer positionId;
    @TableField(exist = false)
    private Position position;

    @TableField(value = "browsing_time")
    private Date browsingTime;

    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_USER_ID = "user_id";

    public static final String COL_POSITION_ID = "position_id";

    public static final String COL_BROWSING_TIME = "browsing_time";

    public static final String COL_ENABLE = "enable";
}